<%--<%@ page language="java" contentType="text/html; charset=utf-8"  pageEncoding="utf-8"%>--%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%--<%@ taglib uri="/buttonTag" prefix="cqqy"%>--%>
<%
    String path = request.getContextPath();
    Integer port =  request.getServerPort() ;
    String basePath = null ;
    if(port!=null && port !=80){
        basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path;
    }else{
        basePath = request.getScheme()+"://"+request.getServerName()+path;
    }
%>


<script type="text/javascript">
    var  path="<%=basePath%>";
</script>